package com.runnirr.doodles.AsyncOperations;

import java.io.InputStream;
import java.net.URL;

import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.os.AsyncTask;

public class LoadDoodleImageAsync extends AsyncTask<String, Void, Bitmap> {

	@Override
	protected Bitmap doInBackground(String... params) {
		Bitmap doodleImage = null;
		
		try {
			URL imageURL = new URL("http:" + params[0]); 
			doodleImage = BitmapFactory.decodeStream((InputStream) imageURL.getContent() );	
		} catch(Exception e){ 
		}
		return doodleImage;
		
	}

}
